package com.dragon.logical.service.avttendance;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.repository.entity.AddPageData;
import com.dragon.repository.entity.AttendanceLeave;

/**
 * <p>
 * 请假表 服务类
 * </p>
 *
 * @author sy
 * @since 2023-07-20
 */
public interface IAttendanceLeaveService extends IService<AttendanceLeave> {

    /**
     * 分页列表
     * @param page
     * @param limit
     * @param adminId
     * @return
     */
    Page<AttendanceLeave> leaveList(Integer page, Integer limit , Integer adminId);

    /**
     * 添加
     * @param leave
     * @return
     */
    AddPageData addLeave(AttendanceLeave leave);

    /**
     * 详情
     * @param id
     * @return
     */
    AttendanceLeave detailLeave(Integer id);

    /**
     * 审核
     * @param status
     * @param mainId
     */
    void auditLeave(Integer status, Integer mainId);
}
